"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Majors",
      [
        { 
          college:1,
          name: '电子与计算机工程',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:1,
          name: '计算机科学与技术',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:1,
          name: '网络安全',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:1,
          name: '数字媒体',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:2,
          name: '马克思主义理论',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:2,
          name: '哲学',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:2,
          name: '社会学',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:3,
          name: '石油工程',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:3,
          name: '天然气勘探',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:4,
          name: '电子信息科学与技术',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:4,
          name: '信息工程',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:4,
          name: '软件工程',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:4,
          name: '通信工程',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:5,
          name: '土木建筑',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:5,
          name: '材料与力学',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:6,
          name: '体育教育',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:6,
          name: '运动训练',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:6,
          name: '社会体育',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:7,
          name: '艺术史论',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:7,
          name: '音乐学',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          college:7,
          name: '美术学',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Majors", null, {});
  },
};
